package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.pojo.Permission;

import java.util.List;

public interface PermissionService {
    PageResult findPage(Integer currentPage, Integer pageSize, String queryString);

    void addPermission(Permission permission);

    Permission findById(Integer id);

    void updatePermission(Permission permission);

    void deletePermission(Integer id);

    List<Permission> findAll();

    Integer[] findPermissionIds(Integer id);


    void updateStatus(Integer permissionId, Integer status);
}
